<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="m@markzou.com">
    <link rel="shortcut icon" href="favicon.png">
    <title>${(jshopbasicinfo.jshopname)} - 商城首页</title>

    <!-- fav icons -->
    <link rel="shortcut icon" href="${basepath}/ui/assets/img/favicon.png" />

    <link rel="stylesheet" type="text/css" href="${basepath}/ui/assets/css/inc_default_theme.css">
    <link rel="stylesheet" type="text/css" href="${basepath}/ui/assets/css/bootstrap.css">
    <link rel="stylesheet" href="${basepath}/admin/js/plugins/uploader/fileuploader.css" >
     <link rel="stylesheet" href="${basepath}/ui/js/jquery.Jcrop.min.css" >

    <script src="${basepath}/ui/assets/js/bootstrap.min.js"></script>
    <script src="${basepath}/ui/assets/js/jquery-1.9.0.min.js"></script>

    <!-- Just for debugging purposes. Don't actually copy this line! -->
    <!--[if lt IE 9]><script src="${basepath}/ui/assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

    <!-- HTML5 shim and Respipond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="${basepath}/ui/assets/js/html5shiv.js"></script>
      <script src="${basepath}/ui/assets/js/respond.min.js"></script>
    <![endif]-->


</head>

<body>

<div class="container-fluid nopadding">

    <div class="page_content_ucpage">

        <div class="pc_head">

            <!-- 头部开始 -->
            <#include "/WEB-INF/theme/default/shop/header.ftl">
            <!--导航条-->
            <#include "/WEB-INF/theme/default/shop/mainnavigation.ftl">


        </div>
            <div class="pc_body user_center_body">
            <div class="pc_w1200">

                <div class="row">
                    <div class="col-md-3">
                        <div class="ucleft">
                            <div class="user_main">
                                <div class="userimg"><img width= "80px" hight="80px" src="${basepath}/${member.headpath}" alt=""></div>
                                <div class="user_info">
                                    <span>${member.nick}</span>
                                    注册时间：${member.createtime?string("yyyy-MM-dd")}</br>
                                    <a href="${basepath}/memberlogout.action">[注销]</a>
                                </div>

                            </div>

                            <ul class="user_nav">
                                <li>
                                    <a href="${basepath}/mcenter/gomyorderlist.action" class="un_01 current" >
                                        <span class="glyphicon glyphicon-shopping-cart" aria-hidden="true"></span>
                                        订单管理
                                    </a>
                                </li>
                                <li>
                                    <a href="${basepath}/mcenter/goreturngoods.action" class="un_02">
                                        <span class="glyphicon glyphicon-leaf" aria-hidden="true"></span>
                                        售后服务
                                    </a>
                                </li>
                                <li>
                                    <a href="${basepath}/gomemberinfo.action" class="un_03">
                                        <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
                                        账户资料
                                    </a>
                                </li>
                                <li>
                                    <a href="${basepath}/mcenter/goaddressmanage.action" class="un_04">
                                        <span class="glyphicon glyphicon-envelope" aria-hidden="true"></span>
                                        收货地址
                                    </a>
                                </li>
                            </ul>
                        </div>

                    </div>
                    <div class="col-md-9">
                        <div class="ucright">

                            <div class="om_m">
                                <div class="p_tt">
                                    <div class="bot"><button class="btn btn-default" type="submit">全部订单</button></div>

                                    我的订单
                                </div>

                                <#if (memberorderon??) && (memberorderon?size>0)>

                                <ul class="om_list">
                                  <#list memberorderon as o>
                                    <li>
                                        <table class="qlt">
                                            <tr>
                                                <td class="t1">
                                                    <div class="tt_img">

                                                    <#if o.mainpicture?? >
                                                        <img src="${basepath}/${o.mainpicture}" width="50px" height="50px" alt="${o.ordername}">
                                                    </#if>

                                                    </div>
                                                </td>
                                                <td>
                                                    <a href="">
                                                      ${o.ordername}
                                                    </a>
                                                </td>
                                                <#if o.paystate=="2"&&o.shippingstate=="2">
                                                    <td class="t1">订单关闭</td>
                                                <#else>
                                                    <td class="t1">订单正常</td>
                                                </#if>
                                                <td class="t4">￥${o.shouldpay}</td>

                                                <#if o.shippingstate=="0">
                                                    <td class="t1">未发货</td>
                                                <#else>
                                                      <td class="t1"></td>
                                                </#if>

                                                <#if o.paystate=="0">
                                                    <td class="t1"><a onclick="findorder('${basepath}','${o.orderid}');" href="javascript:void();">支付</a></td>
                                                <#elseif o.paystate=="1">
                                                    <td class="t1">已付款</td>
                                                </#if>

                                            </tr>
                                        </table>
                                    </li>
                                    </#list>


                                </ul>
                                </#if>
                            </div>






                        </div>
                    </div>
                </div>


            </div>
        </div>
        <#include "/WEB-INF/theme/default/shop/footer.ftl">
        </div>

    </div>

</div>

<script src="${basepath}/ui/assets/js/holder.js"></script>
<script src="${basepath}/ui/assets/js/alert.js"></script>
<script src="${basepath}/ui/js/jquery.Jcrop.min.js"></script>
<script src="${basepath}/ui/assets/js/collapse.js"></script>
<script src="${basepath}/ui/js/myorder.js"></script>

</body>
</html>
